package com.fearless.crm.workbench.service;

import com.fearless.crm.settings.entity.User;
import com.fearless.crm.vo.ClueVoPagination;
import com.fearless.crm.workbench.entity.Activity;
import com.fearless.crm.workbench.entity.Clue;
import com.fearless.crm.workbench.entity.Tran;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ClueService {

    List<User> getUserListService();

    boolean saveClueService(Clue clue);

    ClueVoPagination pageListService(Map map);

    Clue getClueDetailService(String id);

    List<Activity> getActivityByClueIdService(String clueId);

    Map unBundClueWithActivityService(String id);

    Map<String,Object> editClueService(String id);

    boolean connectService(String clueId, String[] activityId);

    boolean updateClueService(Clue clue);

    boolean deleteClueByIdService(String[] id);

    boolean convertService(String clueId, Tran tran, String createBy);

    boolean editClueInDetailService(Clue clue);

    boolean deleteClueInDetailService(String id);
}
